package com.huaxin.device.mapping;

import com.huaxin.device.dto.request.EquipmentCategoryCreateReqDTO;
import com.huaxin.device.dto.request.EquipmentCategoryUpdateReqDTO;
import com.huaxin.device.models.EquipmentCategory;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

@Mapper(componentModel = "spring")
public interface EquipmentCategoryMapping {

    EquipmentCategory toEntity(EquipmentCategoryCreateReqDTO in);

    void updateEntity(EquipmentCategoryUpdateReqDTO in, @MappingTarget EquipmentCategory entity);
}